package com.nanjia.boot.invoicetypeconfig.converter;

import com.nanjia.boot.invoicetypeconfig.model.entity.InvoiceType;
import com.nanjia.boot.invoicetypeconfig.model.form.InvoiceTypeForm;
import org.mapstruct.Mapper;

/**
 * 发票类型对象转换器
 *
 * @author zhouyang
 * @since 2025-06-13 10:11
 */
@Mapper(componentModel = "spring")
public interface InvoiceTypeConverter{

    InvoiceTypeForm toForm(InvoiceType entity);

    InvoiceType toEntity(InvoiceTypeForm formData);
}